package com.ykg.mapper;

import com.ykg.pojo.NoticeLetter;
import lombok.RequiredArgsConstructor;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 *
 * Dao :单船作业通知单
 * Created on 13:57 2021/6/22.
 *
 * @Author: laobian
 * @Description:
 */
@Mapper
@Repository
public interface NoticeMapper {

    //通过id获取通知单
    NoticeLetter findNoticeById(String id);

    //获取所有的通知单
    List<NoticeLetter> findAll();

    //新增一个通知单
    int addNotice(NoticeLetter noticeLetter);

    //更新通知单状态
    int updateNoticeState(String noticeId, String receiver, Date date, int state, String remark);
}
